import UIKit

//
@available(iOS 2.0, *)
extension QKC where AA :UIColor {
	// Access the underlying CGColor or CIColor.
    open func cgColor_qk_g() -> QKC<AA,YY,ZZ, CGColor >{
		 self +^ self.value.cgColor
	}

    @available(iOS 5.0, *)
    open func ciColor_qk_g() -> QKC<AA,YY,ZZ, CIColor >{
		 self +^ self.value.ciColor
	}

	// Set the color: Sets the fill and stroke colors in the current drawing context. Should be implemented by subclassers.
    open func set_qk_f() -> QKC<AA,YY,ZZ,Void>{
		 self +^ self.value.set()
	}

	// Set the fill or stroke colors individually. These should be implemented by subclassers.
    open func setFill_qk_f() -> QKC<AA,YY,ZZ,Void>{
		 self +^ self.value.setFill()
	}

    open func setStroke_qk_f() -> QKC<AA,YY,ZZ,Void>{
		 self +^ self.value.setStroke()
	}

	// If the receiver is of a compatible color space, any non-NULL parameters are populated and 'YES' is returned. Otherwise, the parameters are left unchanged and 'NO' is returned.
    @available(iOS 5.0, *)
    open func getWhite_qk_f(_ white: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> QKC<AA,YY,ZZ,Bool>{
		 self +^ self.value.getWhite(white, alpha:alpha)
	}

    @available(iOS 5.0, *)
    open func getHue_qk_f(_ hue: UnsafeMutablePointer<CGFloat>?, saturation: UnsafeMutablePointer<CGFloat>?, brightness: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> QKC<AA,YY,ZZ,Bool>{
		 self +^ self.value.getHue(hue, saturation:saturation, brightness:brightness, alpha:alpha)
	}

    @available(iOS 5.0, *)
    open func getRed_qk_f(_ red: UnsafeMutablePointer<CGFloat>?, green: UnsafeMutablePointer<CGFloat>?, blue: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> QKC<AA,YY,ZZ,Bool>{
		 self +^ self.value.getRed(red, green:green, blue:blue, alpha:alpha)
	}

	// Returns a color in the same color space as the receiver with the specified alpha component.
    open func withAlphaComponent_qk_f(_ alpha: CGFloat) -> QKC<AA,YY,ZZ,UIColor>{
		 self +^ self.value.withAlphaComponent(alpha)
	}

}

extension QKC where AA :UIColor {
    @available(iOS 13.0, *)
    open func resolvedColor_qk_f(with traitCollection: UITraitCollection) -> QKC<AA,YY,ZZ,UIColor>{
		 self +^ self.value.resolvedColor(with:traitCollection)
	}

}

